import request from '@/utils/request';

const extend = {
  list(params) {
    return request.get('/cgzh/achievementExtend/list', {params});
  },
  myList(params) {
    return request.get('/cgzh/achievementExtend/myList', {params});
  },
  add(data) {
    return request.post('/cgzh/achievementExtend/add', data);
  },
  update(data) {
    return request.post('/cgzh/achievementExtend/update', data);
  },
  getAll(id) {
    return request.get(`/cgzh/achievementExtend/allDetail/${id}`);
  },
  get(id) {
    return request.get(`/cgzh/achievementExtend/detail/${id}`);
  },
  getByAchievementTypeAndId(params) {
    return request.get(`/cgzh/achievementExtend/getByAchievementTypeAndId`, { params });
  },
  delete(id) {
    return request.post(`/cgzh/achievementExtend/delete/${id}`);
  },
  projectAddList(data){
    return request.post(`/cgzh/achievementApplyProject/addList`, data);
  },
  projectListGet(id){
    return request.get(`/cgzh/achievementApplyProject/getByExtendId/${id}`);
  },
  submit(data){
    return request.post(`/cgzh/achievementExtend/submit`, data);
  }
}

export default extend;
